import yaml
def getdatafromyaml(filepath):
    with open(filepath, 'r', encoding='utf-8') as f:
        data=yaml.safe_load(f)
        print(f"从 {filepath} 加载了 {len(data)} 个测试用例")
        return data


import os
basedir=os.path.dirname(os.path.dirname(__file__))
